<include file="__PUBLIC__/_header" />
<script src="__APP_SKIN__js/index_1.js?47"></script>
<body>
    <!--头部开始-->
    <include file="__PUBLIC__/_nav" />
    <!--头部结束-->

    <!--主体开始-->
    <div class="index_banner">
        <div class="bannerbox" style="overflow: visible" id="index">
            <div class="allShop">
                    <div class="all">全部商品分类</div>
                    <ul class="hsort">
                        <include file="__PUBLIC__/_header_title" />
                    </ul>
                </div>

           
            <div class="classification" id="colume">
                <if condition="$kind_goods">
                <ol>
                    <volist name="kind_goods" id="vo">
                    <li>
                        <h1 class="width">
                            <a href="{:BaseController::_createUrl('index/detail',array('kid'=>$vo['item_no']))}" title="{$vo.item_name}">{$vo.item_name}</a>
                            <p class="descolor" title=""></p>
                        </h1>
                        <div class="left" style="position:relative">
                            <a href="{:BaseController::_createUrl('index/detail',array('kid'=>$vo['item_no']))}">
                                <img src="/data/product/{$vo.item_no}.jpg"  style="max-width:229px;" width="229" height="229"  onerror="this.src='__APP_SKIN__images/fault.jpg'" original="__APP_SKIN__images/fault.jpg">
                            </a>
                        </div>
                        <div class="right">
                            <div class="cr">
                                <h2>条码: {$vo.item_no} </h2>                               
                                <h2 class="orgren">
                                    <php>
                                        $spec_name = $vo['unit_no'].$vo['item_size'];                                        
                                    </php>
                                    批发价：{$vo|getProductSalePriceByUserType} 元 <br>
                                    零售价：{$vo.sale_price|round=2}元<br>
									<h3>单位：{$vo.unit_no}</h3>
									<h3>整件规格：{$vo.item_size}</h3>
									<h3>配送规格：{$vo.chasedo_spec|round=2} </h3>
									<if condition="!empty($vo[m_deliver_limit_time])">
										<h3 style="color:red" >促销价:{$vo.current_price} 元</h3>
										<h3 style="color:red" class="limit_time" data-time="{$vo.m_deliver_limit_time}"></h3>
									</if>
									<h3>库存:
									<if condition="$vo['stock_qty'] lt 0 or $vo['stock_qty'] eq 0">
										暂不显示
										<else/>
										暂不显示
									</if>								
									</h3>
									<span style="color:#555">{$vo|getProductRefundTitle}</span>
                                </h2>
                            </div>
							
                            <div class="number">
                                <input id="text_box" name="" class="buy_{$vo.item_no} onlyint" maxlength="6" type="text" value="{$vo.chasedo_spec|round=2}"
								<if condition="$vo['chasedo_spec'] neq 1">
												readonly
										</if>	
								>
                                <div class="add" data-chasedo_spec='{$vo.chasedo_spec|round=2}'></div>
                                <div class="min" data-chasedo_spec='{$vo.chasedo_spec|round=2}'></div>
                                <a class="buy hbtnbuy" style="height:30px;line-height:30px;" id="btnBuy_{$vo.item_no}" data-mid="{$vo.item_no}" data-spec="{$vo.chasedo_spec|round=2}" data-price="{$vo|getProductSalePriceByUserType}" >立即订购
                                    <!--<span class="yuan  circular_{$vo.item_no}" id="cartQty_{$vo.item_no}" style="display: ">0</span>-->
                                    <if condition="$vo.cart_total gt 0">
                                        <span class="yuan circular_{$vo.item_no}" >{$vo.cart_total}</span>
                                        <else/>
                                                 <span class="yuan circular_{$vo.item_no}"  style="display: none">0<span>
                                    </if>
                                </a>	
								<a class="buy hcollect" style="height:30px;line-height:30px;margin-top:35px;background:#c6c5C4"  data-mid="{$vo.item_no}" >立即收藏	</a>							
                            </div>
                        </div>
                    </li>
                    </volist>
                </ol>
                    <div class="page" style=" clear:both; width:100%">

                        <!--MVC分页控件-luotao-->
                        <div class="pageer">
                            {$pager_html}
                        </div>
                        <!--MVC分页控件-luotao end-->
                    </div>
                    <else/>
                    <div style="width: 230px; margin: 20px auto">
                        <img style="width: 230px;height: 200px;" src="__APP_SKIN__images/fault_none.jpg" alt="">

                    </div>

                </if>

            </div>

        </div>

    </div>

<!--主体结束-->
    <input type="hidden" value="{:BaseController::_createUrl('index/classification')}/kid/" id="classification">
    <div class="footer">
        <p>版权所有 Copyright(C)2014  KWINBON.COM 勤邦云栈  黔ICP备15000001号 </p>
        <p>百度信誉档案编号: BDV-企GZA14THBRZ2</p>
    </div>

    <script>
        $(function(){
            var imgName=$("#ad_img").val();
            var hidden_url=$("#classification").val();
//            indexHttpHelper.getAdvertList($(".swiper"),imgName);
//            indexHttpHelper.getFirstKind($(".hsort"),'',hidden_url);
//        indexHttpHelper.getHotGoods($(".ul1"),'',hidden_url);
            ComputedPayHeight();
            $(".hbtnbuy").click(function(){
                var mid=($(this).attr("data-mid"));
				var price=parseFloat($(this).attr("data-price"));
                var total=parseFloat($(this).siblings('.onlyint').val());
                addCart(mid,total,price);
            })
            $(".maintop .left .meun a").eq(1).addClass("active");
			$(".hcollect").click(function(){
				var mid=$(this).attr("data-mid");
				var total=parseFloat($(this).siblings('.onlyint').val());
				addCollect(mid,total);
			})
        })
		function GetRTime(){
		$(".limit_time").each(function(i,v){
				var EndTime= new Date($(v).attr("data-time")); //截止时间 前端路上 http://www.51xuediannao.com/qd63/
				var NowTime = new Date();
				var t =EndTime.getTime() - NowTime.getTime();
				var d=Math.floor(t/1000/60/60/24);
				var h=Math.floor(t/1000/60/60%24);
				var m=Math.floor(t/1000/60%60);
				var s=Math.floor(t/1000%60);
				$(v).html("还剩:"+d + "天"+h + "时"+m + "分"+s + "秒");
				});
		}
	setInterval(GetRTime,1000);
    </script>
</body>
</html>